import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;
public class A {
	public static void main (String args[]) {
		Connection con=null;
		Statement sql;
		ResultSet rs;
		try { Class.forName("com.mysql.jdbc.Driver");
		}
		catch (Exception e){}
		String uri = "jdbc:mysql://localhost:3306/student?useSSL=TRUE";
		String user = "root";
		String password = "111111";
		try{
			con = DriverManager.getConnection(uri,user,password);
		}
		catch (SQLException e){}
		try {
			sql = con.createStatement();
			rs = sql.executeQuery("select * from mess ");
			while (rs.next()){
				String number = rs.getString(1);
				String name = rs.getString(2);
				Date date = rs.getDate(3);
			        float height = rs.getFloat(4);
			        System.out.print(number);
			        System.out.print(name);
				System.out.print(date);
			       System.out.println(height);
			}
			con.close();
		}
		catch (SQLException e){
			System.out.println(e);
		}
	}

}